import {ProblemSubmitStatusEnum} from "../../common/enums/problem.js";

const ProblemUtils = {
    getProblemSubmitStatusEnum: (code) => {
        const status = Object.values(ProblemSubmitStatusEnum).find(s => s.code === code);
        return status || { color: '#d9d9d9', text: `未知状态(${code})` };
    }
}
export default ProblemUtils;
